<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/common/header.jsp"%>
<a href="" title="权限管理——用户管理"></a>
<script type="text/javascript">

Ext.onReady(function(){
    Ext.BLANK_IMAGE_URL = ' ../../js/ext/images/default/s.gif'; 
    // ---------------------- Global vars and functions------------------------------
    Ext.SERVER = '<c:url value="/"/>';
   
    var initForm = new Ext.form.FormPanel({
        region:'center',
        title: '各类统一认证码最大值',
        height:200,
        buttonAlign:'center',
        frame: true,
		items: [{
                layout: 'form',
                frame:true,
                items: [{
                        layout: 'column',
                        items: [{
                                    columnWidth: .5,
                                    layout: 'form',
                                    labelWidth: 100,
                                    defaultType: 'textfield',
                                    defaults: {
                                        width: 180,
                                        msgTarget: 'side',
										disabled:'true'
                                    },
                                    items: [
                                        {
                                            name: 'jzyg',
                                            readOnly: true,
                                            fieldLabel: '教职员工'
                                        },
                                        {
                                            name: 'bzks',
											readOnly: true,
                                            fieldLabel: '本专科生'
                                        },
                                        {
                                            name: 'yjs',
											readOnly: true,
                                            fieldLabel: '研究生'
                                        },
                                        {
                                            name: 'yl',
											readOnly: true,
                                            fieldLabel: '预留'
                                        },
                                        {
                                            name: 'jxjyxs',
											readOnly: true,
                                            fieldLabel: '继续教育学生'
                                        },
                                        {
                                            name: 'qtry',
											readOnly: true,
                                            fieldLabel: '其他人员'
                                        }
                                    ]
                                }]
                             }
                    ]
        }],
        buttons: [
            {
                text: '获取最大值',
                handler: function(){
                   initForm.getForm().load({
			         url: '<c:url value="/user/getMaxNum.do"/>',
			         waitMsg: 'loading...',
			         success: function(aResponse, aOptions){
			         },
			         failure: function() {
			             Ext.Msg.alert('提示', '请先登录！');                             
			         }
			     });
                }
            }
        ]
    });
    
    // --------------- viewport --------------------

    var viewport = new Ext.Viewport({
        layout: 'fit',
        border: false,
        items: [
          initForm
        ]
    });
	 // --------------- init --------------------

    // bind event
    initForm.getForm().load({
         url: '<c:url value="/user/getMaxNum.do"/>',
         waitMsg: 'loading...',
         success: function(aResponse, aOptions){
         },
         failure: function() {
             Ext.Msg.alert('提示', '请先登录！');                             
         }
     });
   

});
</script>
<%@ include file="/WEB-INF/views/common/footer.jsp"%>
